﻿@using CodeBuilder.Models.TemplateModels
@inherits RazorEngine.Templating.TemplateBase<CodeBuilder.Models.TemplateModels.DtoFileModel>
using System;
using System.Text;
using System.ComponentModel;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Application.Services.Dto;

namespace @(Model.Namespace).@(Model.DirName).Dto
{
    public class @(Model.Name)EditDto : NullableIdDto<@Model.KeyType>
    {
        @foreach (ClassProperty classProperty in Model.ClassPropertys)
        {
            if (classProperty.ClassAttributes != null && classProperty.ClassAttributes.Count > 0)
            {
                foreach (var classAttribute in classProperty.ClassAttributes)
                {
        <text>        @Raw(@classAttribute.NameValue)
</text>
                }
            }
        <text>        public @Raw(@classProperty.PropertyType) @classProperty.Name { get; set; }

</text>
        }

    }
}
